{include file="header.html"}
<style>
.limit{ max-width:960px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
/*.page-content .row .table{ min-width:auto; }*/
</style>

<div class="page-header">
	<h6>
		汇总管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			操作日志
		</small>
	</h6>
</div>


<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="collect" />
<input type="hidden" name="act" id="act" value="log" />
<input type="text" class="input-medium" placeholder="操作内容" name="content" value="{$content}" />
<input type="text" class="input-medium" placeholder="IP" name="ip" value="{$ip}" />
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<div class="table-content">
<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>操作内容</th>
			<th>IP</th>
			<th>操作时间</th>
		</tr>
	</thead>

	<tbody>
		{foreach from=$rs item=row}
		<tr>
			<td>{$row->id}</td>

			<td>
				<a style="color: black;text-decoration:none" href="?app=collect&act=log_details&id={$row->id}">
					<div class="limit" title='{str_replace("'","\'",$row->content)}'>{$row->content}</div>
				</a>
			</td>
			<td>{$row->ip}</td>
			<td>{$row->add_time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		{/foreach}	
		
	</tbody>
</table>
</div>
<div class="mypage">
	共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
</div>
{include file="footer.html"}
<script>
$(function(){
	$('.limit').tips();
});
</script>